/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package lanSimulation;

import java.io.IOException;
import java.io.Writer;

/**
 *
 * @author farooq
 */
public class LogManager {

    Writer reportWriter;

    public LogManager(Writer writer){
        reportWriter = writer;
    }

    public void log(String message){

        try{

            reportWriter.write(message);

        }
        catch(IOException ex){
            // ignore
        }

    }

    public void flush(){

        try{
            reportWriter.flush();
        }
        catch(IOException ex){

        }

    }



}
